package com.game.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author lvhao
 * @since 2020-09-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class WorldMap extends Model<WorldMap> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Integer userId;

    /**
     * 目标玩家id
     */
    @ApiModelProperty(value = "目标玩家id")
    private Integer playerId;

    /**
     * 资源id
     */
    @ApiModelProperty(value = "资源id")
    private Integer resourcesId;

    /**
     * 刷新时间
     */
    @ApiModelProperty(value = "刷新时间")
    private String refreshTime;

    /**
     * 手动刷新时间
     */
    @ApiModelProperty(value = "手动刷新时间")
    private String nonAutoRefreshTime;

    /**
     * x
     */
    @ApiModelProperty(value = "x")
    private Double x;

    /**
     * y
     */
    @ApiModelProperty(value = "y")
    private Double y;

    /**
     * z
     */
    @ApiModelProperty(value = "z")
    private Double z;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
